﻿using Newtonsoft.Json.Linq;
using RestSharp;
using System;
using System.Collections.Generic;
using Models;

namespace Bjts.ApiGate
{  
  /// <summary>
  /// 用户相关接口
  /// </summary>
  public class UserApi
  {
    /// <summary>
    /// 登录
    /// </summary>
    /// <param name="username"></param>
    /// <param name="password"></param>
    /// <param name="openid"></param>
    /// <param name="isbind"></param>
    /// <returns></returns>
    public static Dictionary<string, object> CheckLogin(string testUnitId, ParmGenToken model)
    {
      var parms = new Dictionary<string, string>
      {
        ["testUnitId"] = testUnitId,
        ["uid"] = model.uid,
        ["pwd"] = model.pwd
      };

      var _return = new Dictionary<string, string>();
      var result = ApiHelper.GetApiResult("/weixin/bjts/LoginCheck", parms, RestSharp.Method.POST); 
      return result;
    }

  }
}
